<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>



<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'showMeeting.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <h3 align="center">会议申请列表</h3>
    
     
    <table  align="center" width="70%" border="1" bordercolor="#000000"  style="border-collapse:collapse;" >
    <tr>
      <th>序号</th>
      <th>会议标题</th>
      <th>会议地点</th>
      <th>开始日期</th>
      <th>开始时间</th>
      <th>参加部门</th>
      <th>状态</th>
      <th></th>  
    </tr>
    <c:forEach var="meeting" items="${meetingList}"  varStatus="status"> 
    <tr>
    <td align="center"> <c:out value="${status.count}"/></td>
    <td align="center"> ${meeting.title}</td>
    <td align="center"> ${meeting.place}</td>
    <td align="center"> ${meeting.startDate}</td>
    <td align="center"> ${meeting.startTime}</td>
    <td align="center"> ${meeting.departMent}</td>
    <td align="center"> 
         <c:if test="${meeting.stauts == '0'}" var="name1">未审批</c:if>
         <c:if test="${meeting.stauts == '1'}" var="name2">已审批</c:if>
    </td>
    
    <td align="center">
    
      <c:if test="${meeting.stauts == '0'}" >
       <a href="meetingController/preApproval?id=${meeting.id}">审批</a>
       </c:if>
    </td>
 
    </tr>
       </c:forEach>
   </table> 
  
  </body>
</html>
